home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / WordPress 1.5.1.dmg / wordpress / wp-content / themes / default / search.php < prev    next >
Encoding:
PHP Script  |  2005-03-09  |  1.4 KB  |  46 lines

  1. <?php get_header(); ?>
  2.  
  3.     <div id="content" class="narrowcolumn">
  4.  
  5.     <?php if (have_posts()) : ?>
  6.  
  7.         <h2 class="pagetitle">Search Results</h2>
  8.         
  9.         <div class="navigation">
  10.             <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
  11.             <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
  12.         </div>
  13.  
  14.  
  15.         <?php while (have_posts()) : the_post(); ?>
  16.                 
  17.             <div class="post">
  18.                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  19.                 <small><?php the_time('l, F jS, Y') ?></small>
  20.                 
  21.                 <div class="entry">
  22.                     <?php the_excerpt() ?>
  23.                 </div>
  24.         
  25.                 <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
  26.             </div>
  27.     
  28.         <?php endwhile; ?>
  29.  
  30.         <div class="navigation">
  31.             <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
  32.             <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
  33.         </div>
  34.     
  35.     <?php else : ?>
  36.  
  37.         <h2 class="center">Not Found</h2>
  38.         <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  39.  
  40.     <?php endif; ?>
  41.         
  42.     </div>
  43.  
  44. <?php get_sidebar(); ?>
  45.  
  46. <?php get_footer(); ?>